$(function(){
	
//页头统一js
$(".main").prepend('<div id="topnav"><span class="topnav">|</span><a href="http://www.jqmobile.org/" title="Jquery mobile中文社区" target="_blank" class="topnav">Jquery mobile中文社区</a><span class="topnav">|</span><a href="http://www.html5mobi.com/" title="移动Web开发社区" target="_blank" class="topnav">移动Web开发社区</a> <span class="topnav">|</span><a href="http://jquerymobile.com/" title="Jquery mobile官网" target="_blank" class="topnav">Jquery mobile官网</a><span class="topnav">|</span><a href="http://t.qq.com/darklordli" title="darklord的微博" target="_blank" class="topnav">darklord的微博</a><span class="topnav">|移动互联网群：34732268|</span><a title="作者QQ:78386201" target="_blank" class="topnav">QQ:178386201</a></div>');


//页脚统一js
$(".main").append('<p class="indent" style="text-align:center; clear:both">沪ICP备11047128  Copyright © darklord. All Rights Reserved.	Darklord版权所有 广告合作请联系coolli2@163.com</p>');

//选项卡切换
$("ul.tab a").click(function() {
	var i = $("ul.tab a").index(this);
	$(this).parent().find("a").removeClass("current");
	$(this).addClass("current");
	$(".subtab").hide().eq(i).show();
	return false;
});
	});


var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F5e13238890dbd7e358ab97f709416084' type='text/javascript'%3E%3C/script%3E"));
